<template>
    <div class="w-100% h-100%">
        <chart :cdata="cdata" :ratio="curRatio" />
    </div>
</template>

<script lang="ts" setup>
import {computed} from "vue";
import Chart from './chart';
import { useEchartSize } from '@/utils/utils';

const props = defineProps({
    value: {
        type: Number,
        default: 0.5
    }
})

const cdata = computed(() => {
    return props.value;
})

const { curRatio } = useEchartSize();


</script>

<style lang="scss" scoped>

</style>
